package com.xr.sunnyday.dao;

import com.github.pagehelper.Page;
import com.xr.sunnyday.pojo.Setmeal;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface SetmealDao {

    Page<Setmeal> findByCondition(String queryString);

    void add(Setmeal setmeal);

    void addSetmealCheckgroup(@Param("id") Integer id, @Param("ids") Integer ids);

    Setmeal findByid(int setmealid);

    List<Integer> findCheckGroupBySetmel(int setmealid);

    void update(Setmeal setmeal);

    void deleteCheckSetmelGroup(Integer id);

    void delete(int setmealid);

    int findorderBySetmel(int setmealid);

    List<String> findImgs();

    List<Setmeal> findAll();

    Setmeal findDetailById(int id);

    List<Map<String, Object>> findSetmealCount();
}
